package com.grf.function.service;

import com.grf.function.function.CustomizeInterface;
import com.grf.function.function.CustomizeInterface2;
import com.grf.function.function.CustomizeInterface3;
import com.grf.function.function.CustomizeInterface4;
import org.springframework.stereotype.Service;

/**
 * @description: 自定义函数时接口业务类
 * @author: guorf
 * @date: 2024/8/19 23:32
 * @version: v1.0
 */
@Service
public class SimpleService {
    /**
     * @description:  午餐无返回值
     * @author: guorf
     * @date: 2024/8/19 23:35
     */
    public void execute(CustomizeInterface customizeInterface){
        customizeInterface.test();
    }
    /**
     * @description: 有参无返回值
     * @author: grf
     * @date: 2024/8/19
     */
    public void execute2(CustomizeInterface2 customizeInterface){
        customizeInterface.test("test");
    }
    /**
     * @description: 无参有返回值
     * @author: grf
     * @date: 2024/8/19
     */
    public String execute3(CustomizeInterface3 customizeInterface){
        return customizeInterface.test();
    }
    /**
     * @description: 有参有返回值
     * @author: grf
     * @date: 2024/8/19
     */
    public String execute4(CustomizeInterface4 customizeInterface){
       return customizeInterface.test("test");
    }
}
